import request from "./request";

/**
 * 获取用户数据
 * @param data 参数
 * @returns 
 */
export const getUser = (data:Object={}) => {  
    return request({
        url: '/api/user',
        method: 'get',
        data
    })
} 

/**
 * 登录
 * @param data {account:'xx',pwd:'xx'}
 * @returns 
 */
export const login = (data:Object={}) => {  
    return request({
        url: '/api/login',
        method: 'post',
        data
    })
} 